﻿namespace Yz.Base.ParaModels
{
    public class ParaFile : ParaModel
    {
        /// <summary>
        /// 文件地址
        /// </summary>
        public string Path { get; set; }
    }
    public class ParaFileId : ParaModel
    {
        /// <summary>
        /// 文件唯一标识
        /// </summary>
        public string Id { get; set; }
    }
    public class ParaThFile : ParaModel
    {
        /// <summary>
        /// 缩略图宽度
        /// </summary>
        public int Width { get; set; } = 160;
        /// <summary>
        /// 缩略图长度
        /// </summary>
        public int Height { get; set; } = 160;

    }
    /// <summary>
    /// 分片上传文件参数
    /// </summary>
    public class ParaChunkFile : ParaModel
    {
        /// <summary>
        /// 总片数
        /// </summary>
        public int Chunks { get; set; }
        /// <summary>
        /// 当前片索引
        /// </summary>
        public int Chunk { get; set; }
        /// <summary>
        /// 文件身份标识（标识文件片来自同一个文件）
        /// </summary>
        public string Guid { get; set; }
        /// <summary>
        /// 文件名称
        /// </summary>
        public string FileName { get; set; }
    }

    public class ParaMergeFile : ParaModel
    {
        /// <summary>
        /// 总共多少片
        /// </summary>
        public int Chunks { get; set; }
        /// <summary>
        /// 文件唯一标识
        /// </summary>
        public string Guid { get; set; }
        /// <summary>
        /// 文件名（带后缀）
        /// </summary> 
        public string FileName { get; set; }
    }
}
